package com.example.communitypro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class ChatList {
    private Integer listId;
    private Integer sender;
    private Integer receiver;
    private Integer isOnline;
    private Integer unread;
    private Integer status;
    @ApiModelProperty("最近一次联系时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp latestTime;
    @ApiModelProperty("0:陌生人;1:我的关注,:2:我的粉丝;3:官方;4:好友")
    private Integer type;

    public ChatList(Integer listId, Integer sender, Integer receiver, Integer isOnline, Integer unread, Integer status, Integer type, Timestamp latestTime) {
        this.listId = listId;
        this.sender = sender;
        this.receiver = receiver;
        this.isOnline = isOnline;
        this.unread = unread;
        this.status = status;
        this.type = type;
        this.latestTime = latestTime;
    }
    public ChatList(){}
}
